<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
       <!-- vue实例 -->
       <div id="app" class="body-style">
        <h2>您当前点击的是 : {{ msg }} </h2>
        <div class="box-flex" v-for="item in list" :key="item.id">
            <my-cpn :listdata="item" @changeid="changeIdData"></my-cpn>
        </div>
  
    </div>
    <!-- vue实例 -->

    <!-- 组件 -->
    <template id="myCpn">
        <div class="cpn-style" @click="clickCpn">
            <div class="cpn-img">
                <img :src="listdata.imgUrl" alt="">
            </div>
            <div class="text">
                {{ listdata.text }}
            </div>
            <div class="pirce">
                {{ listdata.price | newPrice }}
            </div>
        </div>
    </template>
    <!-- 组件 -->

    <script src="./src/vue.js"></script>
    <script src="./dist/bundle.js" ></script>
</body>
</html>